package util;
import org.hibernate.Session;


public class Conecta {
	
	public static void main(String[] args) {
		Session session = null;
		
		try {
			session = HibernateUtil.getSession().openSession();
			System.out.println("Conectado");
		} finally {
			session.close();
			System.out.println("Conexao fechada");
		}
	}

}
